import request from '@/utils/request'

// 查询服务器信息列表
export function listServeice(query) {
  return request({
    url: '/property/serveice/list',
    method: 'get',
    params: query
  })
}

// 查询所有服务器信息
export function allServeice(query) {
  return request({
    url: '/property/serveice/all',
    method: 'get',
    params: query
  })
}
// 查询服务器信息详细
export function getServeice(serverId) {
  return request({
    url: '/property/serveice/' + serverId,
    method: 'get'
  })
}

// 新增服务器信息
export function addServeice(data) {
  return request({
    url: '/property/serveice',
    method: 'post',
    data: data
  })
}

// 修改服务器信息
export function updateServeice(data) {
  return request({
    url: '/property/serveice',
    method: 'put',
    data: data
  })
}

// 删除服务器信息
export function delServeice(serverId) {
  return request({
    url: '/property/serveice/' + serverId,
    method: 'delete'
  })
}
